<?php

/**
 * @author Rizky Tahara Shita
 * @website http://tahara.web.id
 * @email rizky.tahara@gmail.com
 * @copyright b'IT Cyber Solution
 */

class M_modules_polling extends BZ_Model
{
	function __construct()
	{
		parent::__construct();
	}


/**
 * @section biskitz modules: Polling
 * @description simple polling for biskitz modules
 */

	/**
	 * @function set_active
	 * @description set all record to 'not active'
	 */
	function set_active($prm_dbase = 'db_default', $prm_language_id = '1', $prm_status = 'Active')
	{
		if ($prm_status == 'Active')
		{
			$this->M_database->update
			(
				$prm_dbase
				, 'biskitz_front_module_polling_questions'
				, array
					(
						'status' => 'Inactive'
					)
				, array
					(
						'language__id' => $prm_language_id
					)
				, FALSE
			);
		}
	}



}

/** End of file m_modules_polling.php */
/** Location: ./biskitz_cms/biskitz/models/admin/biskitz/front_end/modules/polling/m_modules_polling.php */